package org.wanho.rent.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.wanho.jdbc.util.RowMapper;
import org.wanho.rent.entity.SysUser;

public class SysuserMapper implements RowMapper<SysUser>{

	@Override
	public SysUser mapRow(ResultSet rs) throws SQLException {
		SysUser user = new SysUser();
		user.setId(rs.getInt("id"));
		user.setUserName(rs.getString("username"));
		user.setLoginName(rs.getString("loginname"));
		user.setLoginPassWord(rs.getString("loginpassword"));
		return user;
	}

}
